package grape.workflow.rest.comment.vo;

import grape.base.service.user.api.IUserService;
import grape.common.rest.vo.BaseIdVo;
import grape.common.rest.vo.BaseVo;
import grape.common.service.trans.TransBy;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * Created by yangwei
 * Created at 2020/6/23 18:34
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("任务评论数据响应对象")
public class CommentVo extends BaseIdVo<String> {


    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("用户id")
    private String userId;

    @TransBy(type = IUserService.trans_type_userNickname,byFieldName = "userId")
    @ApiModelProperty("用户昵称")
    private String userNickname;

    @ApiModelProperty("添加时间")
    private Date time;

    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "time")
    @ApiModelProperty("添加时间文本")
    private String timeTxt;

    @ApiModelProperty("任务id")
    private String taskId;

    @ApiModelProperty("流程实例id")
    private String processInstanceId;

    @ApiModelProperty("动作类型")
    private String action;

    @ApiModelProperty("精简评论内容")
    private String message;

    @ApiModelProperty("全部评论内容")
    private String fullMessage;

}
